class CreateProductHasParameters < ActiveRecord::Migration
  def change
    create_table :product_has_parameters, :id => false, :force => true do |t|
      t.references :product, :null => false
      t.references :parameter, :null => false
    end

    add_index :product_has_parameters, :product_id
    add_index :product_has_parameters, :parameter_id
  end
end
